<template>
  <el-table-column
    :prop="prop"
    :label="label"
    :align="align"
    :min-width="minWidth"
  >
    <template v-slot="{row}">
      <template v-if="row.isTB">
        未贴标
      </template>
      <template v-else-if="row.isSystem || row.isSystemLabel">
        {{row.sku}}
      </template>
      <template v-else>
        {{row[prop] || '-'}}
      </template>
    </template>
  </el-table-column>
</template>

<script>
export default {
  name: "MLCodeColumn",
  props:{
    prop: {
      type: String,
      default: 'inventoryId',
    },
    label: {
      type: String,
      default: '产品标',
    },
    align: {
      type: String,
      default: 'left',
    },
    minWidth: {
      type: String,
      default: '120',
    },
  },
}
</script>

<style scoped lang="scss">

</style>
